import React from 'react' 
import {useLocation} from 'react-router-dom'
import qs from 'qs'
export default function New() {
    const location = useLocation()
    const {user,age} = qs.parse(location.search.split('?')[1])
  return (
    <div>
        <p>我的名字是：{user},年纪是：{age}</p>
    </div>
  )
}
